home *** CD-ROM | disk | FTP | other *** search
- Path: airdmhor.gen.nz!not-for-mail
- From: gumboot@airdmhor.gen.nz (Simon Hosie)
- Newsgroups: comp.lang.c
- Subject: Re: Something to play with.
- Date: 2 Feb 1996 00:44:16 +1300
- Organization: Airdmhor
- Message-ID: <4eq92g$6cu@airdmhor.gen.nz>
- References: <4eist1$9fk@airdmhor.gen.nz> <9601291847.AA21404@dxmint.cern.ch>
- NNTP-Posting-Host: localhost.gen.nz
- X-Newsreader: TIN [version 1.2 PL2]
-
- gumboot@airdmhor.gen.nz (Simon Hosie) writes:
- > ...
- > "!!!!!In!9qEtRC)#yNa{!!!!!!!,)$!!!!]!!!@Z!!rV+"
- > ;void main(void){S=T;D=(unsigned char*)T;for(i=1;i<sizeof(T);i
- > +=5){V=0;for(j=0;j<5;j++){V*=85;V+=strchr(C,*S++)-C;}*D++=V;V
- > /=0x100;*D++=V;V/=0x100;*D++=V;V/=0x100;*D++=V;}F=fopen(
- > "gbcode.zip","wb");fwrite(T,1,2338,F);}
- >
- > If anyone gets any kind of warning or error comiling this or anything it
- > generates, please let me know.
-
- Dan Pop:
- > AxCrnA$ cc test.c
-
- > ;void main(void){S=T;D=(unsigned char*)T;for(i=1;i<sizeof(T);i
- > ......^
- > %CC-E-NEEDNONVOID, In this statement, "main(...)" has void type, but occurs in a context that requires a non-void result.
- > at line number 55 in file DISK$L32:[DANPOP]TEST.C;31
-
- Ok, I've got that error covered, now. I've had someone get it to crash,
- anyone else have any problems there (after they've changed "void main(" to
- "int main(").
-